{% extends "quest_table.html" %}

{% block page_title %}
Quests searching
{% endblock %}

{% block quests %}
<table>
<tr><th>group_by</th><th>Name</th><th></th></tr>
{% for q in quests %} 
<tr>
<td>
  {{q.info}}
</td>
<td>
    <a href="/quests/{{q.quest.id}}/show">{{q.quest.name}}</a>
</td>
<td>
  {% if q.already_joined%}
    <a href="/quests/{{q.quest.id}}/unjoin" target="_blank">-1</a>
    <a href="/quests/{{q.quest.id}}/complete" target="_blank">complete</a>
  {% else %}
    <a href="/quests/{{q.quest.id}}/join" target="_blank">+1</a>
  {% endif %}
</td>
</tr>
{% endfor %} 
</table>
Total objects:{{quests|length}} 
{% endblock %}
